package com.qqbot.model.group;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;

/**
 * <p>
 * 群信息
 * </p>
 *
 * @author fyq
 * @since 2023-03-03
 */
@Data
public class Groups implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 机器人QQ
     */
    private String bot;

    /**
     * 群号
     */
    private String groupNo;

    /**
     * 欢迎词
     */
    private String welcomeContent;

    /**
     * 入群是否欢迎
     */
    private Boolean welcome;

    /**
     * 是否启用
     */
    private Integer status;

    @TableLogic
    private Boolean delLogic;

    @TableField(fill = FieldFill.INSERT)
    private Date createDate;

    @TableField(fill = FieldFill.INSERT_UPDATE, update = "now()")
    private Date modifyDate;
}
